<?php

###########################################################################
#   Copyright (C) 2012 CDNPAL LTD by Christopher Gu                       #
#   resources@cdnpal.com                                                  #
#                                                                         #
#   coded for Php 4.3/5.X and above                                       #
#   and AllowOverride all for .htaccess                                   #
#                                                                         #
#   This program is free software released                                #
#   under the GPL version 2 license:                                      #
#   http://www.gnu.org/licenses/gpl-2.0.htm                               #
#                                                                         #
#   This program is distributed WITHOUT ANY WARRANTY                      #
#   or FITNESS FOR A PARTICULAR PURPOSE.                                  #
#                                                                         #
#   DADF-SDK                                                              #
#                                                                         #
###########################################################################

class BidRequestWorkflow
{
	
	public function decide_bid_request_offer($request_advertisement, &$offer_amount, &$offer_type) {
		
		/*
		 * This is where you will implement your business logic
		 * to decide whether or not to place a bid offer on this 
		 * media advertisement, and at what cost
		 */
		
		$offer_type			= "cpm";
		$offer_amount 		= 4.35; 
		
		return true;
		
	}
	
}